﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masDefault.master" AutoEventWireup="true"
    CodeFile="VideoList.aspx.cs" Inherits="VideoList" %>

<%@ Register Src="UserControl/Video.ascx" TagName="Video" TagPrefix="uc1" %>
<%@ Register Assembly="CommonTagTime" Namespace="CommonTagTime.PagerControl.stylePager2" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <script src="/scripts/Popup.js"></script>
     <script src="/scripts/common.js"></script>
    <h1 class="clearleft">
        Video
    </h1>
    
    <div class="newsPagingTop">
        <cc1:stylePager2 ID="pagerTop" runat="server" OnPageIndexChanging="pagerTop_PageIndexChanging"
            OnPageSizeChanging="pagerTop_PageSizeChanging" ShowPageSize="True" ShowViewAll="True" />
    </div>
    <asp:DataList ID="dalVideo" runat="server" RepeatColumns="1" RepeatLayout="Table"
        CssClass="vList" RepeatDirection="Horizontal" OnItemDataBound="dalVideo_ItemDataBound">
        <ItemTemplate>
            <asp:PlaceHolder ID="phdControlVideo" runat="server"></asp:PlaceHolder>
        </ItemTemplate>
    </asp:DataList>
    <div class="newsPagingBottom">
        <cc1:stylePager2 ID="pagerBottom" runat="server" OnPageIndexChanging="pagerTop_PageIndexChanging"
            OnPageSizeChanging="pagerTop_PageSizeChanging" ShowPageSize="True" ShowViewAll="True" />
    </div>
    <div id="divBackground" class="lightbox" style="display: none;">
        &nbsp;</div>
    <div id="divOverlay" class="clipOverlay" style="display: none;">
        &nbsp;</div>
    <div class="clear">
        &nbsp;</div>
    <script type="text/javascript">
      
       var divBackground = document.getElementById('divBackground');
       function ViewVideo(id) {
           var src = document.getElementById('hidValue_' + id).value;
           src=fixEmbeddedVideo(src);
           document.getElementById('tdValue_' + id).innerHTML=src; 
           var divPopUpVideo = document.getElementById('divPopUpVideo_' + id);
           f_putScreen(divPopUpVideo, divBackground, true);
           var divOverlay = document.getElementById('divOverlay');
           if (divOverlay) {
             
               divOverlay.style.left = divPopUpVideo.style.left;
               divOverlay.style.top = divPopUpVideo.style.top;
               divOverlay.style.height = divPopUpVideo.clientHeight-120 + 'px';
               divOverlay.style.width = divPopUpVideo.clientWidth + 'px';               
               divOverlay.style.display = '';
           }
       }
       function ClosePopupVideo(id) {
           var divPopUpVideo = document.getElementById('divPopUpVideo_' + id);
          // alert(divPopUpVideo.clientHeight);
           f_putScreen(divPopUpVideo, divBackground, false);
           document.getElementById('tdValue_' + id).innerHTML = '';
           document.getElementById('divOverlay').style.display='none';
       }
     
    </script>
</asp:Content>
